package com.mason.csma.buying.acts

import android.app.Application
import android.view.View
import androidx.lifecycle.LifecycleOwner
import com.imyyq.mvvm.base.AppBarBaseViewModel
import com.imyyq.mvvm.base.BaseModel
import com.mason.lib.common.base.app.MyCommonAppBarProcessor

class PublishViewModel(app : Application)
    :AppBarBaseViewModel<BaseModel, MyCommonAppBarProcessor>(app) {

    override fun onCreate(owner: LifecycleOwner) {
        super.onCreate(owner)
        mAppBarProcessor.title.value = "我要发布"
        mAppBarProcessor.onAppBarRightBtnClick.set(onBack)
    }

    val onBack =View.OnClickListener {
        finish()
    }

}